﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            //隐式实现接口
            Lest1 Lest1 = new Lest1();
            Lest1.A = 18;
            Lest1.B = 45;
            Lest1.Multiplication();
            Lest1.Addition();
            //显示实现接口
            Lest2 lest2 = new Lest2();
            IPrintCalculate printCalculate = lest2;
            lest2.A = 23;
            lest2.B = 44;
            printCalculate.Addition();
            printCalculate.Multiplication();
        }
    }
}
